package com.ljc.cjgl.repository.bbs;

import com.ljc.cjgl.entitiy.bbs.Comment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author: JavaJun
 * Date: 2019-05-05 8:48
 */
@Repository
public interface CommentRepository extends JpaRepository<Comment, Integer>, JpaSpecificationExecutor<Comment> {

    List<Comment> findByArticleId(Integer id);

    void deleteByArticleId(Integer articleId);
}
